@import "mixin";
.cart-container {
  --cart-bg: #FE671D;

}

.cart-btn {
  position: fixed;
  right: 18px;
  bottom: 44px;
  z-index: 100;
  background: url("~@/assets/images/shop/icon-cart.png") no-repeat center center / 100% 100%;
  @include flex_center();
  width: 80px;
  height: 80px;
  border-radius: 100%;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  &.active {
    background: url("~@/assets/images/shop/icon-cart-full.png") no-repeat center center / 100% 100%;
  }
  span {
    right: 7px;
    top: 8px;
    border: 1px solid #fff;
    font-size: 15px;
    width: 24px;
    height: 24px;
    border-radius: 100%;
    position: absolute;
    background: $-color-orange;
    @include flex_center();
  }
}

.cart-model {
  @include model();

  .cart-body {
    width: 340px;
    position: absolute;
    right: -500px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    transition: right .3s;
  }

  &.show .cart-body {
    right: 0;
  }

  .close-arrow {
    position: absolute;
    left: -18px;
    height: 32px;
    width: 32px;
    border-radius: 100%;
    background: #fff;
    font-size: 20px;
    z-index: 1;
    border: 2px solid #fff;
    @include background_color();
    @include flex_center();
  }

  .cart-content {
    align-self: stretch;
    flex: 1;
    background: #fff;
    position: relative;
    border-top: 1px solid #F4F4F4;
    .cart-list {
      height: 100%;
      overflow: auto;
      padding: 20px;
      .cart-group {
        margin-bottom: 20px;
      }
      .item {
        padding-right: 10px;
        position: relative;
        box-sizing: border-box;

        .icon-check {
          @include icon_check();
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
        }
        .c-image {
          margin: 0 10px 0 38px;
          border: 1px solid #F4F4F4;
        }
      }
      .cart-children {
        padding-left: 50px;
        margin-top: 12px;
        .children-item {
          margin-bottom: 12px;
          &:last-child {
            margin-bottom: 0;
          }
          .c-image {
            margin-right: 10px;
          }
          .children-info {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
          }
          .price {
            @include price($-color-orange, 18, 12);
          }
        }
      }
      .number-control {
        @include number_control();
        input {
          width: 44px;
        }
      }
      .price {
        @include price();
      }
    }

    .cart-footer {
      height: 113px;
      box-sizing: border-box;
      background: #FFFFFF;
      border-top: 1px solid #F4F4F4;
      padding: 10px 16px 20px 20px;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;

      .price {
        @include price($-color-brown, 24, 16);
      }

      .ivu-btn {
        height: 40px;
        font-size: 15px;
      }
    }
  }
}


